#!/bin/bash
source /usr/local/backups/config

if [ -z $1 ]; then
	echo "Missing collection as param 1"
	echo "Possible collections:"
	cat $COLLECTION_LIST
	exit
fi

$DUPLICITY remove-all-but-n-full $FULLS_TO_KEEP --force \
  --encrypt-key=$GPG_ENCR_KEY \
  --sign-key=$GPG_SIGN_KEY $DEST_ROOT/$1
